package com.charger.transactionflow.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.PromoteOperations.domain.Client;
import com.charger.chargingStation.domain.Chargingstation;
import com.charger.trade.domain.Chargingrecords;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

/**
 * 账单流水对象 transactionflow
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
@Data
public class Transactionflow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易流水主键 */
    private Long clientId;

    private Long chargingstationId;
    private Long transactionflowId;
    private Chargingstation chargingstation;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date TradingHours;

    /** 充电记录id（外键） */
    @Excel(name = "充电记录id", readConverterExp = "外=键")
    private Long chargingrecordsId;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String transactionType;

    /** 交易状态 */
    @Excel(name = "交易状态")
    private String transactionStatus;

    /** 逻辑删除 */
    private Long del;

    @TableField(exist = false)
    private Chargingrecords chargingrecords;
    @TableField(exist = false)
    private Client client;
    public void setTransactionflowId(Long transactionflowId) 
    {
        this.transactionflowId = transactionflowId;
    }

    public Long getTransactionflowId() 
    {
        return transactionflowId;
    }
    public void setTradingHours(Date TradingHours) 
    {
        this.TradingHours = TradingHours;
    }

    public Date getTradingHours() 
    {
        return TradingHours;
    }
    public void setChargingrecordsId(Long chargingrecordsId) 
    {
        this.chargingrecordsId = chargingrecordsId;
    }

    public Long getChargingrecordsId() 
    {
        return chargingrecordsId;
    }
    public void setTransactionType(String transactionType) 
    {
        this.transactionType = transactionType;
    }

    public String getTransactionType() 
    {
        return transactionType;
    }
    public void setTransactionStatus(String transactionStatus) 
    {
        this.transactionStatus = transactionStatus;
    }

    public String getTransactionStatus() 
    {
        return transactionStatus;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transactionflowId", getTransactionflowId())
            .append("TradingHours", getTradingHours())
            .append("chargingrecordsId", getChargingrecordsId())
            .append("transactionType", getTransactionType())
            .append("transactionStatus", getTransactionStatus())
            .append("del", getDel())
            .toString();
    }
}
